﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Objects;
using Project_mfa.entities;

namespace Project_mfa
{
    public class Data
    {
        private groep1_festivalsEntities db;

        public Data()
        {
            db = new groep1_festivalsEntities();
        }

        public ObjectResult eGetFestival(int id)
        {
            ObjectResult result = db.getFestival(id);
            return result;
        }

        public ObjectResult eGetAllFestivals()
        {
            ObjectResult result = db.getFestivals();
            return result;
        }

        public ObjectResult eGetFestivalNames(String name)
        {
            ObjectResult result = db.getFestivalSearch(name);
            return result;
        }

        public ObjectResult eGetBandNames(String search)
        {
            ObjectResult result = db.getBandSearch(search);
            return result;
        }

        public ObjectResult eGetFestivalBands(int id)
        {
            ObjectResult result = db.getFestivalBands(id);
            return result;
        }

        public ObjectResult eGetFestivalCampings(int id)
        {
            ObjectResult result = db.getFestivalCampings(id);
            return result;
        }

        public ObjectResult eGetCampFaci(int id)
        {
            ObjectResult result = db.getCampFaci(id);
            return result;
        }

        public ObjectResult eGetBand(int id)
        {
            ObjectResult result = db.getBand(id);
            return result;
        }

        public ObjectResult eGetBandFestivals(int id)
        {
            ObjectResult result = db.getBandFestivals(id);
            return result;
        }

    }
}